if(onFloor){
    if(aboveGround){
        aboveGround=!aboveGround;
        dy=0;
        y+=sprite_height;
        with(oSolid){
            scrSolidFlip();
        }
    }else if(!aboveGround){
        aboveGround=!aboveGround;
        dy=0;
        y-=sprite_height;
        with(oSolid){
            scrSolidFlip();
        }
    }
}
